//
//  WFPasswordManagerUtilies.h
//  WFTravel
//
//  Created by mc on 2017/11/8.
//  Copyright © 2017年 admin. All rights reserved.
//

#import <Foundation/Foundation.h>
@class TTLoginModel;

@interface LLPasswordManagerUtilies : NSObject

+ (BOOL)saveUUIDString:(NSString *)uuidString;  // 保存UUID
+ (NSString *)getUUIDString;        // 取出uuid

+ (BOOL)savePassword:(NSString *)password account:(NSString *)account;

+ (BOOL)savePasswordData:(NSData *)password account:(NSString *)account;

+ (NSArray<NSDictionary<NSString *, id> *> *)allAccounts;

+ (NSString *)passwordForAccount:(NSString *)account;

+ (NSData *)passwordDataAccount:(NSString *)account;

+ (BOOL)deletePasswordAccount:(NSString *)account;

/**
 保存登录用户信息
 */
+ (void)saveLoginUserInfoWithModel:(TTLoginModel *)loginModel;

/**
 获取登录用户信息
 */
+ (TTLoginModel *)getLoginUserInfo;

/**
 删除 登录用户信息
 */
+ (void)deleteLoginUserInfo;


/// 归档
+ (void)saveDatasWithKey:(NSString *)key object:(id)obj;

/// 解档
+ (id)getDatasWithKey:(NSString *)key;

/// 删除数据
+ (void)deleteDataWithKey:(NSString *)key;


///保存当前的版本号
+ (void)saveCurrentVersion;

///获取保存的版本号
+ (NSString *)getLastVersion;

@end
